package cvi.com.reader.bean;

import android.Manifest;

import okhttp3.CacheControl;

/**
 * Created by WP on 2020/7/20.
 */

public class constant {
    public static final String DEFAULT_IP = "配置IP";
    public static final String CLICK_IP = "收起IP";
    public static final int MYPUBLIC = 1;//个人中心我的发布
    public static final int DRAFTS = 0;//个人中心我的草稿箱=
    public static final String PERSONAL_MYRECEIVER = "MyReceiver";//个人中心广播常量
    public static final String CHARTS_MYRECEIVER = "MyReceiver";//排行榜广播常量
    public static final String CLOSElOGIN_MYRECEIVER = "MyReceiver";//关闭登录界面
    public static final String UPDATA_PARTY_MENBER_INFO_MYRECEIVER = "MyReceiver";//更新党员信息界面
    public static final String MYPUBLIC_MYRECEIVER = "MyReceiver";//草稿箱点击发布按钮后，更新我的发布界面作品数量
    public static final String TAB_MYRECEIVER = "MyReceiver";//删除收藏页面数据后，更新诗词大汇、课本、绘本界面收藏按钮状态
    public static final String CHANGE_IP = "MyReceiver";//ip更改后广播
    public static final String CHANGE_FRGAMENT = "CHANGE_FRGAMENT";//
    public static int user_id = 0;
    /**
     * 处理播放时间
     */
    public static final int HANDLER_MESSAGE_WHAT_PLAY_TIME = 1;
    /**
     * 进度条最大值
     */
    public static final int PROGRESS_MAX_VALUE = 100;
    /**
     * 朗读页面跳转背景音乐
     */
    public static final int WORKS_DETAIL_CODE = 0;
    /**
     * 朗读页面处理播放时间
     */
    public static final int WORKS_DETAIL_TIME = 1;
    /**
     * 统计朗读次数标识
     */
    public static final int READER_CLICK_NUM = 1;
    /**
     * 统计素材浏览次数标识
     */
    public static final int WORKS_CLICK_NUM = 0;
    // public static final String URL = "42.192.180.207:8000";
    // public static final String URL = "10.191.241.229:80";
    public static final String URL = "192.168.9.94:80";
    /**
     * 写入权限的请求code,提示语，和权限码
     */
    public final static int WRITE_PERMISSION_CODE1 = 0x0244;
    public final static int WRITE_PERMISSION_CODE2 = 0x0246;
    public final static int WRITE_PERMISSION_CODE3 = 0x0247;
    public final static String WRITE_PERMISSION_TIP = "为了正常使用，请允许一下权限!";
    public final static String[] PERMS_WRITE = {Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.INTERNET, Manifest.permission.RECORD_AUDIO, Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.CAMERA
    };
    public final static String[] PERMS_WRITE1 = {Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.INTERNET
    };
    public final static String[] PERMS_WRITE2 = {
            Manifest.permission.WRITE_SETTINGS
    };
    public final static String[] PERMS_WRITE3 = {
            Manifest.permission.RECORD_AUDIO};
}
